﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommerceOne.Domains.Entities;
using CommerceOne.Domains.Repositories;

namespace CommerceOne.Domains.SqlRepositories
{
    
    public class SqlUserRepository : IUserRepository
    {
        private readonly EfDbContext _context = new EfDbContext();

        /// <summary>
        /// Gets the user.
        /// </summary>
        /// <param name="id">The id.</param>
        /// <returns></returns>
        public User GetUser(long id)
        {
            return this._context.Users.Where(p => p.Id == id).FirstOrDefault();
        }


    }
}
